<?php
namespace Profiles\Model;

class Comment
{
	public $comment_id;
	public $comment;
	public $added_date;
	public $upadted_date;
	public $comment_status;
	public $user_id;
	
	public function exchangeArray($data){
	
		$this->comment_id  = (isset($data['comment_id']))    ? $data['comment_id']	: null;
		
		$this->comment = (isset($data['comment']))   ? $data['comment']  : null;
		
		$this->added_date = (isset($data['added_date']))  ? $data['added_date']  : null;
		
		$this->upadted_date = (isset($data['upadted_date'])) ? $data['upadted_date']  					 : null;
		
		$this->comment_status  	= (isset($data['comment_status']))  	? $data['comment_status']  : null;	
		$this->user_id  	= (isset($data['user_id']))  	? $data['user_id']  : null;	
	}

	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}

}